﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class KhachHangBUS
    {
        public static KhachHangDTO ThongTinTaiKhoan(int makhachhang)
        {
            return KhachHangDAO.ThongTinTaiKhoan(makhachhang);
        }

		public static KhachHangDTO DangNhap(string email, string matkhau)
        {
            return KhachHangDAO.DangNhap(email,matkhau);
        }

        public static List<KhachHangDTO> DanhSachTaiKhoan(string HoTen, string TinhTrang, ref int dem)
        {
            return KhachHangDAO.DanhSachTaiKhoan(HoTen,TinhTrang, ref dem);
        }

        public static bool DangKy(string Email, string MatKhau, string EmailPhu, string TenKhachHang, string DiaChi, string DienThoai)
        {
            return KhachHangDAO.DangKy(Email,MatKhau,Email,TenKhachHang,DiaChi,DienThoai);
        }

        public static bool CapNhatTaiKhoan(int makhachhang, string tinhtrang)
        {
            return KhachHangDAO.CapNhatTaiKhoan(makhachhang, tinhtrang);
        }
    }
}
